package org.example.javadt.entity;

import java.util.Date;

public class likes {
    private String user_id;
    private String post_id;
    private Date timestamp;
    private String platform;

//    存储数据：
//
//    user_id：点赞用户 ID（关联 users 表）
//    post_id：被点赞帖子 ID（关联 posts 表）
//    timestamp：点赞时间
//    platform：点赞操作发生的平台
//
//    用途：
//    存储用户对帖子的点赞关系，支持展示帖子的点赞数和点赞用户列表。


    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getPost_id() {
        return post_id;
    }

    public void setPost_id(String post_id) {
        this.post_id = post_id;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public likes() {
    }

    public likes(String user_id, String post_id, Date timestamp, String platform) {
        this.user_id = user_id;
        this.post_id = post_id;
        this.timestamp = timestamp;
        this.platform = platform;
    }

    @Override
    public String toString() {
        return "likes{" +
                "user_id='" + user_id + '\'' +
                ", post_id='" + post_id + '\'' +
                ", timestamp=" + timestamp +
                ", platform='" + platform + '\'' +
                '}';
    }
}
